package com.example.design.strategy.promotion;

/**
 * @Description 折扣接口-抽象策略类
 * @ClassName Strategy
 * @Author Yumuhui
 * @Date 2020/5/15 0:24
 * @Version 1.0.0
 */
public abstract class Discount {

    protected double finalPrice;
    protected String desc;

    public Discount(String desc) {
        this.desc = desc;
    }

    public double getFinalPrice() {
        return finalPrice;
    }

    public void setFinalPrice(double finalPrice) {
        this.finalPrice = finalPrice;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    abstract double discountMethod(double price);
}
